• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Boost Mobile] [ Team Osiris ][ Linaro ] CyanogenMOD 10 Beta 2.0 Camera WORKING ( Jellybean 4.1.2 ) for ZTE WARP

Anyone help me out ??

iam having an undefined reference in C

/*
* WCN1312 libra WiFi Loader
* Updated for Jellybean By DM47021
*
* This binary will load the wifi drivers, set mac address and
* enable / dislaple polling on sdcc.3 for msm7x30
*
*/

#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>

#define LOG_TAG "LoadLibra"
#include "cutils/log.h"
#include "cutils/misc.h"
#include "cutils/properties.h"

#define WIFI_DRIVER_LOADER_DELAY 1000000

static const char DRIVER_MODULE_PATH[] = "/system/lib/modules/libra.ko";

extern void zte_oem_rapi_streaming_function(int n, int p1, int p2, int p3, int *v1, int *v2, int *v3);
extern int init_module(void *, unsigned long, const char *);
extern int delete_module(const char *, unsigned int);

void getmac(char *mac_param)
{
char x[6];
int y;

memset(x,0,6);
y=0;
zte_oem_rapi_streaming_function(3,0,0,0,0,&y,x);
ALOGI("zte_oem_rapi_streaming_function %p %x %x",x,x[1],y);
sprintf(mac_param,"mac_param=%02X:%02X:%02X:%02X:%02X:%02X",x[5],x[4],x[3],x[2],x[1],x[0]);
ALOGI("Got MAC Address: %s ",mac_param);
}

static int insmod(const char *filename, char *args)
{
void *module;
unsigned int size;
int ret;
ALOGI("Loading module");
module = load_file(filename, &size);
if (!module)
return -1;
ALOGI("Init module");
ret = init_module(module, size, args);

free(module);

return ret;
}

static int rmmod(const char *modname)
{
int ret = -1;
int maxtry = 10;

while (maxtry-- > 0) {
ret = delete_module(modname, O_NONBLOCK | O_EXCL | O_TRUNC);
if (ret < 0 && errno == EAGAIN)
usleep(500000);
else
break;
}

if (ret != 0)
ALOGD("Unable to unload driver module \"%s\": %s\n",
modname, strerror(errno));
return ret;
}

static int write_int(char const* path, int value)
{
int fd;
static int already_warned = 0;

fd = open(path, O_RDWR);
if (fd >= 0) {
char buffer[20];
int bytes = sprintf(buffer, "%d\n", value);
int amt = write(fd, buffer, bytes);
close(fd);
return amt == -1 ? -errno : 0;
} else {
if (already_warned == 0) {
ALOGE("write_int failed to open %s\n", path);
already_warned = 1;
}
return -errno;
}
}

int main(void)
{
char mac_param[128];

write_int("/sys/devices/platform/msm_sdcc.3/polling", 1);

getmac(mac_param);
ALOGI("Loading Libra.ko");
if ((insmod(DRIVER_MODULE_PATH, mac_param)) < 0){
rmmod("librasdioif");
} else {
usleep(WIFI_DRIVER_LOADER_DELAY);
property_set("wlan.driver.status", "ok");
}

write_int("/sys/devices/platform/msm_sdcc.3/polling", 0);

return 0;
}
error: 35, Undefined reference to zte_oem_rapi_streaming_function

It looks like there's an issue with the extern function call to zte_oem_rapi_streaming_function. If I remember my C correctly, extern basically tells the compiler that, even though the specified function may not be declared in the current file, that it has been elsewhere in another file in the program and that it's okay to go ahead and compile without seeing the actual function present in the current file. My guess is that there is no such definition for zte_oem_rapi_streaming_function elsewhere in the other files in the program.
 
  • Like
Reactions: LilBit
Upvote 0
Awesome!! I am gonna put the clock back in the status bar and give that a try.
Thank you!! Really hate to give up Jellybean again for my nandroid this time,
I can deal without the camera for now.

I re-flashed, no gapps and now is working waaaaaaaaaaaaaay much better, only one reboot while restoring apps and that's it.

Also about the clock, I missed to tell you that you have to set the 24 hour format in order to get the correct time.

Thanks and I'm gonna try the trimmed gapps thing!
 
Upvote 0
It looks like there's an issue with the extern function call to zte_oem_rapi_streaming_function. If I remember my C correctly, extern basically tells the compiler that, even though the specified function may not be declared in the current file, that it has been elsewhere in another file in the program and that it's okay to go ahead and compile without seeing the actual function present in the current file. My guess is that there is no such definition for zte_oem_rapi_streaming_function elsewhere in the other files in the program.

Best part is, if you look down further, its just outputting to log, so just removing the entry took care of that ;)

Stop in and say hi sometime :D
 
Upvote 0
It looks like there's an issue with the extern function call to zte_oem_rapi_streaming_function. If I remember my C correctly, extern basically tells the compiler that, even though the specified function may not be declared in the current file, that it has been elsewhere in another file in the program and that it's okay to go ahead and compile without seeing the actual function present in the current file. My guess is that there is no such definition for zte_oem_rapi_streaming_function elsewhere in the other files in the program.

No. But we do have a lib. Lib_OEM_rapi.so
 
Upvote 0
Best part is, if you look down further, its just outputting to log, so just removing the entry took care of that ;)

Stop in and say hi sometime :D

I gotta do that! I used to lurk even when I didn't have time to join in the convo, but lately my main Warp has begun to take a crap, and GroupMe isn't even giving me the notifications anymore. :/
 
Upvote 0
This build was so good i couldnt wait to share it with all of you. i hope you are excited because this is the build you have been waiting for.

CM10 Milestone 7.1 08302013

Changes


Frameworks Changes:
Transparent notification shade
Triggering EarlySuspend based on BackLight brightnes
Allow purging of asset bitmaps... ported from Froyo
Optimize gradient textures
Fix memory corruption in LayerRenderer copyLayer
Plug memory leak that happens when reusing display
Fix texture corruption
Use RGB565 surface for wallpaper
Prefer 16bpp formats for opaque bitmaps

Settings Changes:
Enable the NAVBAR
Add Option to disable boot animation
Add Partition info option in settings

Reboot Menu Changes:
Add Hot Reboot option
Add bootloader option

Phone Changes:
Add option to exit to homescreen after call

Trebuchet Launcher Changes:
Fix icon label shadow outline rendering


DOWNLOAD
Download M7.1 HERE

If you Really Enjoy my work, all donations are great;y appreciated.
 
Upvote 0
This build was so good i couldnt wait to share it with all of you. i hope you are excited because this is the build you have been waiting for.

CM10 Milestone 7.1 08302013

Changes


Frameworks Changes:
Transparent notification shade
Triggering EarlySuspend based on BackLight brightnes
Allow purging of asset bitmaps... ported from Froyo
Optimize gradient textures
Fix memory corruption in LayerRenderer copyLayer
Plug memory leak that happens when reusing display
Fix texture corruption
Use RGB565 surface for wallpaper
Prefer 16bpp formats for opaque bitmaps

Settings Changes:
Enable the NAVBAR
Add Option to disable boot animation
Add Partition info option in settings

Reboot Menu Changes:
Add Hot Reboot option
Add bootloader option

Phone Changes:
Add option to exit to homescreen after call

Trebuchet Launcher Changes:
Fix icon label shadow outline rendering


DOWNLOAD
Download M7.1 HERE

If you Really Enjoy my work, all donations are great;y appreciated.







You're an amazing man there my brother! Tireless effort.
 
  • Like
Reactions: Nasinator8
Upvote 0
So far so good! Call volume is good and voice is clear. Feels like I have a new phone! Clock is the only issue I've had, but I can live with it. After a few reboots status bar displays correct time.

Thanks for all the hard work you've put into this ROM! Its amazing! Never thought my warp would have something like this.
 
  • Like
Reactions: LilBit
Upvote 0
Ok so I did what you said, installed fine, try to turn on wifi and it froze. For some reason the alien warp screen still comes up first before the loading animation does. I have an extra Warp that I use to test roms that I might like before using my main phone. I had alien warp mod installed first but when it boots, that screen comes up first.
 
Upvote 0
Ok so I did what you said, installed fine, try to turn on wifi and it froze. For some reason the alien warp screen still comes up first before the loading animation does. I have an extra Warp that I use to test roms that I might like before using my main phone. I had alien warp mod installed first but when it boots, that screen comes up first.

yeah thats normal, it actually loads 2 different png files
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones