The collected works of yetanother**ixuser - Page 3

I want to upgrade the firmware on this old Alphastation 200, but i'm unable to mount the firmware cd.

Code: Select all

# file /dev/rrz*c
rrz6c: character special (8/6146) SCSI #0 RRD43 disk #48 (SCSI ID #6 ) (SCSI LUN 0 ) errors = 0/6 offline

mount -t cdfs -o noversion /dev/rz6c /cdrom
/dev/rz6c on /cdrom: No such device

# uname -a
OSF1 alphastation V4.0 386 alpha


whats wrong?
no plan
Stoo wrote: Because it's /dev/rrz6c not /dev/rz6c?



/dev/rrz6c is the char device and /dev/rz6c is the correspondig block device for mounting.
no plan
foetz wrote: according to the digital unix 4.0d docs not using the raw device is correct

Code: Select all

mount -rd -t cdfs -o rrip /dev/rz4c /usr/share/doclib/online


does the cdrom work otherwise? i mean you're sure the gear is fine?


yes, the drive is ok, downgraded to digital unix 3.0F. it seems that cdfs support is not included in the standard dgux kernel, which give me some warm lols *gg*. after the rebuild the mount command works. unfortunatly the files on the cdrom are corrupt.
so next question is, how do i mount a fat formated floppy without installing mtools?
no plan
ahh sorry, forgot that data general even exists. this is about digital unix.
no plan
R-ten-K wrote: self awareness, that post has none...
no plan
My Total: 33

I always knew that i am the chosen one!!!
no plan
goldenamber wrote: I apologize for sounding dumb, but I think this is just took advanced for me. Can I add anybody on FB or chat anyway to talk more about this more directly? My FB is: https://www.facebook.com/nicholas.fitzsimons.3


No offense, but sometimes i dont want to live on this planet any more.
no plan
guardian452 wrote: I keep getting notifications ex. "hamei has posted in Winnetou Died" but when I click on the link there is no new post there... now when I click the link I get:
viewtopic.php?p=7380246#p7380246
"The requested topic does not exist."

It's a buggy feature, for sure :roll:


*gg*thats because agent hamei is using his stealth typewriter...
no plan
big changes means bitches involved
no plan
nice...if you have such friends, one need no more foes.
no plan
hamei wrote:
jsloan wrote: How would you avoid this ?

Standard, time-tested methods - trust no one, keep a low profile, don't make waves, keep any of yer damn individualist idears very very quiet, when they kick you in the teeth smile and say, "thank you, sir !". Them niggers all had it coming to them anyhow. Fucking protesters made me late for work, damn them. Vote republican, vote democrat, applaud Bruce Jenner who has always been a woman inside and all the other ridiculous politically-correct horseshit you are supposed to be occupied with. (I have personally always been a giraffe inside, but I can't afford the surgery :( ) But whatever you do, don't think about what the assholes you are voting for really do. The Trans-Pacific Partnership is really about 'free trade ! and a glorious future for all beings !' not a transparent attempt to control the world like a mentally-retarded twenty-first century Roman Empire. We have always been at war with Communism ! Bang that drum ! Wave that bloody shirt ! Run in circles crying and screaming The Tewwowists are cumming ! the Tewwowists are cumming ! Oh waht shall we do ?! Hep me ! hep me ! Lock me nekkid in a cage, butt-rape me three times a day, anything, just please sir keep me saaaafe ! Waaah ! waaah ! Go to lots of sports events and cheer loudly. Parrot all the stupid crap printed in the press. Join Faceblob and twitter endlessly about what your cat ate for breakfast. Be a good little serf and maybe you won't get disappeared. Buy lots and lots of Apple products, the more pretentious and useless the better. Avoid thinking at all costs, it shows in your eyes.

Just the usual.


you named it all..."BROT UND SPIELE (Copyright Joseph Goebbels)"
no plan
would someone be so kind to translate this php to perl code? the json bitchery is not needed.

Code: Select all

<?php
// process.php

$errors         = array();      // array to hold validation errors
$data           = array();      // array to pass back data

// validate the variables ======================================================
// if any of these variables don't exist, add an error to our $errors array

if (empty($_POST['name']))
$errors['name'] = 'Name is required.';

if (empty($_POST['email']))
$errors['email'] = 'Email is required.';

if (empty($_POST['superheroAlias']))
$errors['superheroAlias'] = 'Superhero alias is required.';

// return a response ===========================================================

// if there are any errors in our errors array, return a success boolean of false
if ( ! empty($errors)) {

// if there are items in our errors array, return those errors
$data['success'] = false;
$data['errors']  = $errors;
} else {

// if there are no errors process our form, then return a message

// DO ALL YOUR FORM PROCESSING HERE
// THIS CAN BE WHATEVER YOU WANT TO DO (LOGIN, SAVE, UPDATE, WHATEVER)

// show a message of success and provide a true success variable
$data['success'] = true;
$data['message'] = 'Success!';
}

// return all our data to an AJAX call
echo json_encode($data);



this is what i have tried, but this goes nowhere...

Code: Select all

#!/usr/bin/perl

use strict;
#use warnings;

use JSON;
use CGI;

my $cgi = CGI->new;

print $cgi->header('application/json;charset=UTF-8');

my @errors;
my @data;

my $lparnmame = $cgi->param('lparname');
my $from = $cgi->param('from');
my $to = $cgi->param('to');
my $email = $cgi->param('email');






if ( my $lparname eq "" ) { push(@errors, 'Lparname is required') };
if ( my $from eq "" ) { push(@errors, 'From is required') };
if ( my $to eq "" ) { push(@errors, 'To is required') };
if ( my $email eq "" ) { push(@errors, 'Email is required') };

if ([email protected]) {
push(@data, @errors);
}
else {
push(@data, 'Success');
};

no plan
ClassicHasClass wrote: Well, for one thing, you're not printing anything. What are you planning to do with the @errors or @data array?


this should be a so called "ajax controller", a server side component of a jquery based webpage which processes / generates / mails nmonchart (aix) orders. so no printing of variables because this is done with javascript on the clientside.
no plan
you're right, seems the json output part was lost during copy/paste. my fault.
no plan
are you the bunnspecial from the macrumors forum?
no plan
ok modified the code to ducks suggestions and switched to hashes instead of arrays.

Code: Select all

#!/usr/bin/perl

use strict;
#use warnings;

use JSON;
use CGI;

my $cgi = CGI->new;

print $cgi->header('application/json;charset=UTF-8');

my %errors;
my %data;

my $lparnmame = $cgi->param('lparname');
my $from = $cgi->param('from');
my $to = $cgi->param('to');
my $email = $cgi->param('email');


if ( my $lparname eq "" ) { $errors{'lparname'}='Lparname is required'; }
if ( my $from eq "" ) { $errors{'from'}='From is required'; }
if ( my $to eq "" ) { $errors{'to'}='To is required'; }
if ( my $email eq "" ) { $errors{'email'}='Email is required'; }



if (%errors) {
$data{'success'}=0;
$data{'errors'}=\%errors;
} else {
$data{'success'}=1;
$data{'message'}='Success';
}

my $json=JSON->new;
print $json->encode(\%data);



this produces the following which is abolutely ok.

Code: Select all

[email protected]: /srv/www/nmonchart/ondemand # ./process.pl
Content-Type: application/json;charset=UTF-8

{"success":0,"errors":{"email":"Email is required","to":"To is required","from":"From is required","lparname":"Lparname is required"}}


the problem is it does not honor its input parameters.

when i add this...

Code: Select all


...

if (!%errors) {
$data{'success'}=0;
$data{'errors'}=\%errors;
} else {
$data{'success'}=1;
$data{'message'}='Success';
}

...


it outputs this...

Code: Select all


[email protected]: /srv/www/nmonchart/ondemand # ./process.pl
Content-Type: application/json;charset=UTF-8

{"success":1,"message":"Success"}



also ok, but this all should be dynamic according to input paramaters. any hints?
no plan
ok fixed it, there was a typo in an variable name.

Code: Select all


my $lparnmame = $cgi->param('lparname'); <-----spot the redundant  "m" in lparname



thanks for helping me! :oops:
no plan
commodorejohn wrote: Hell, it's basically Lennart Poettering's entire reason for existing...


He-who-must-not-be-named :twisted:
no plan
individuals who insits on using a SMAAAAART PHOOOOOONE to browse nekochan.net, will get their entitlement to use this site removed. same goes for using this spydevices inside a pub.
no plan
uunix wrote: I think Karma has just got me for that evil thought, I've just rubbed chili in my eye from my tea!! FSCK!!!


chili in tea, this is not very british sir. :D
no plan
no offense, but this looks fragile and ugly.
no plan
wow..this happens everyday in middle east or africa, so spare me with your double standards and stop whining. thousands where slaughthered over there, and nobody gives a shit. say thank you to the "political establisment" whith there "say it loud and say it clear, terrorists are welcome here" t-shirts.
no plan
here she is...
no plan
not exactly, but i always install my macs either with target disk mode or carbon copy cloning, and it always works, no matter what kind of install disk (grey or retail) used.
no plan
...
no plan
since kdevelop requires qt, i wish you good look in building a working qt distribution!
no plan
want to change my email address, and it alway says "The email address you entered is not allowed to be used." whats the right way to do it? the new email is a mail.ru one. no russian domains allowed or what?
no plan
tried it a few times, but no success.

no plan
thank you neko, so since my former account is working again, the user "hagbard" can be deleted on next chance.
no plan
snagged a nice powerbook g4 12" from a local fleamarket. its fully loaded and in near mint condition. useless but beautyfull *g*
no plan
i want to build goaccess https://goaccess.io on aix, but (of course) it gives me some troubles. i'm absolutely aware that getotp_long is not available in aix, so i decided to use net/freebsds implementation and copied over the two header files (getopt.h, cdefs.h).
unfortunatly the linker still chokes on undefined symbol getopt_long. how's that?

Code: Select all


[email protected]: /usr/local/src/goaccess/source/goaccess-1.2 # grep getopt_long /usr/include/getopt.h
* GNU-like getopt_long()/getopt_long_only() with 4.4BSD optreset extension.
int     getopt_long(int, char * const *, const char *,
int     getopt_long_only(int, char * const *, const char *,



snippet from the goaccess code using getopt_long (src/options.c)

Code: Select all


while ((o = getopt_long (argc, argv, short_options, long_opts, &idx)) >= 0) {
if (-1 == o || EOF == o)
break;
switch (o) {
case 'f':
if (conf.filenames_idx < MAX_FILENAMES)
conf.filenames[conf.filenames_idx++] = optarg;
break;
case 'p':
/* ignore it */
break;



linker error

Code: Select all

[email protected]: /usr/local/src/goaccess/source/goaccess-1.2 # xlc_r -DSYSCONFDIR=\"/usr/local/goaccess/etc\" -q64 -qmaxmem=-1 -DNDEBUG -DSYSV -D_AIX -D_AIX64 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -I/opt/freeware/include  -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-bmaxdata:0x80000000 -Wl,-b64 -Wl,-bexpall -Wl,-bnoipath -Wl,-brtl -o goaccess src/base64.o src/browsers.o src/color.o src/commons.o src/csv.o src/error.o src/gdashboard.o src/gdns.o src/gholder.o src/gmenu.o src/goaccess.o src/gslist.o src/gstorage.o src/gwsocket.o src/json.o src/opesys.o src/options.o src/output.o src/parser.o src/settings.o src/sha1.o src/sort.o src/ui.o src/util.o src/websocket.o src/xmalloc.o  src/gkhash.o    -lnsl -lncursesw -lpthread
ld: 0711-317 ERROR: Undefined symbol: .getopt_long

[email protected]: /usr/local/src/goaccess/source/goaccess-1.2 # xlc_r -DSYSCONFDIR=\"/usr/local/goaccess/etc\" -q64 -qmaxmem=-1 -DNDEBUG -DSYSV -D_AIX -D_AIX64 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52 -D_AIX53 -D_AIX61 -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -I/opt/freeware/include  -L/opt/freeware/lib64 -L/opt/freeware/lib -Wl,-bmaxdata:0x80000000 -Wl,-b64 -Wl,-bexpall -Wl,-bnoipath -Wl,-brtl -o goaccess src/base64.o src/browsers.o src/color.o src/commons.o src/csv.o src/error.o src/gdashboard.o src/gdns.o src/gholder.o src/gmenu.o src/goaccess.o src/gslist.o src/gstorage.o src/gwsocket.o src/json.o src/opesys.o src/options.o src/output.o src/parser.o src/settings.o src/sha1.o src/sort.o src/ui.o src/util.o src/websocket.o src/xmalloc.o  src/gkhash.o    -lnsl -lncursesw -lpthread -bnoquiet
(ld): setopt 64
(ld): halt 4
(ld): setopt expall
(ld): setopt noipath
(ld): setopt rtl
(ld): setopt rtllib
(ld): setopt symbolic:1
(ld): setfflag 4
(ld): savename goaccess
(ld): filelist 36 1
(ld): i /lib/crt0_64.o
(ld): i src/base64.o
(ld): i src/browsers.o
(ld): i src/color.o
(ld): i src/commons.o
(ld): i src/csv.o
(ld): i src/error.o
(ld): i src/gdashboard.o
(ld): i src/gdns.o
(ld): i src/gholder.o
(ld): i src/gmenu.o
(ld): i src/goaccess.o
(ld): i src/gslist.o
(ld): i src/gstorage.o
(ld): i src/gwsocket.o
(ld): i src/json.o
(ld): i src/opesys.o
(ld): i src/options.o
(ld): i src/output.o
(ld): i src/parser.o
(ld): i src/settings.o
(ld): i src/sha1.o
(ld): i src/sort.o
(ld): i src/ui.o
(ld): i src/util.o
(ld): i src/websocket.o
(ld): i src/xmalloc.o
(ld): i src/gkhash.o
(ld): lib /usr/lib/libnsl.a
(ld): lib /opt/freeware/lib/libncursesw.a
(ld): lib /usr/lib/libpthread.a
(ld): lib /opt/IBM/xlc/13.1.3/lib/libxlopt.a
(ld): lib /opt/IBM/xlc/13.1.3/lib/libxlipa.a
(ld): lib /opt/IBM/xlc/13.1.3/lib/libxl.a
(ld): lib /usr/lib/libc.a
(ld): lib /usr/lib/librtl.a
LIBRARY: Shared object libnsl.a[shr_64.o]: 430 symbols imported.
LIBRARY: Shared object libncursesw.a[libncursesw.so.5]: 598 symbols imported.
LIBRARY: Shared object libpthread.a[shr_xpg5_64.o]: 346 symbols imported.
LIBRARY: Shared object libc.a[shr_64.o]: 3096 symbols imported.
LIBRARY: Shared object libc.a[posix_aio_64.o]: 20 symbols imported.
LIBRARY: Shared object libc.a[aio_64.o]: 18 symbols imported.
LIBRARY: Shared object libc.a[pse_64.o]: 8 symbols imported.
LIBRARY: Shared object libc.a[dl_64.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty_64.o]: 1 symbols imported.
LIBRARY: Shared object libc.a[cthread_64.o]: 25 symbols imported.
LIBRARY: Shared object libc.a[uchar_64.o]: 4 symbols imported.
LIBRARY: Shared object librtl.a[lazy42_64.o]: 3 symbols imported.
FILELIST: Number of previously inserted files processed: 36
(ld): resolve
RESOLVE: 1315 of 11565 symbols were kept.
(ld): addgl /usr/lib/glink64.o
ADDGL: Glink code added for 144 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol                    Inpndx  TY CL Source-File(Object-File) OR Import-File{Shared-object}
RLD: Address  Section  Rld-type Referencing Symbol
----------------------------------------------------------------------------------------------
.getopt_long              [64]    ER PR src/options.c(src/options.o)
00000054 .text    R_RBR    [6]     .verify_global_config
00000110 .text    R_RBR    [6]     .verify_global_config
00000e68 .text    R_RBR    [16]    .read_option_args
00001110 .text    R_RBR    [16]    .read_option_args
ER: The return code is 8.


no plan
meanwhile i found a library which exports the missing symbol. this will suffice for testing the binary, will compile the getopt_long shared library as suggested by dexter1 later.


[email protected]: /usr/local/goaccess/bin # ldd goaccess
goaccess needs:
/usr/lib/libnsl.a(shr_64.o)
/opt/freeware/lib/libncursesw.a(libncursesw.so.5)
/usr/lib/libpthread.a(shr_xpg5_64.o)
/opt/freeware/lib/libmagic.a(libmagic.so.1)
/usr/lib/libc.a(shr_64.o)
/usr/lib/libthread.a(shr_64.o)
/usr/lib/libpthreads.a(shr_xpg5_64.o)
/usr/lib/libtli.a(shr_64.o)
/usr/lib/libC.a(shr3_64.o)
/usr/lib/libC.a(shr2_64.o)
/usr/lib/libc.a(shr.o)
/usr/lib/libpthreads.a(shr_xpg5.o)
/unix
/opt/freeware/lib64/libgcc_s.a(shr.o)
/opt/freeware/lib/libz.a(libz.so.1)
/usr/lib/libcrypt.a(shr_64.o)
/usr/lib/libc.a(pse_64.o)
/usr/lib/libC.a(shrcore_64.o)
/usr/lib/libcrypt.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/usr/lib/libC.a(ansicore_64.o)

no plan